<!doctype html> 
<html> 
<head> 
    <meta charset="utf-8"> 
    <title></title> 
</head>
<script type="text/javascript">
//alert(window == parent);
/*
window.parent.onload = function(){
	alert(1);
}
*/
/*
window.window.window.window.onload = function(){

}
*/

//window
	window.onload = function(){
		//alert(a);
		this.a = 20;
		var a = 30;
		window.a = 10;
		alert(a);
		//alert('a' in window);

		//var l = a = 5;
		/*
		var a = document.getElementById('sad');
		var attr = a.getAttribute('lll');
		*/
		//alert('sajdkl' in window)
		//alert('attr' in a);

		//alert('Array.Prototype.slice' in Array);
		//alert('alert' in window)
	}	
	
</script>
<body>

<div id='sad' class='asda' lll='1'></div>
</body>
</html>